<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>start</title>
</head>
<body>
<table width="100%" align="center">
<tr>
<td width="70%" align="center" valign="middle">
<c:forEach items="${courseList}" var="course">
<c:if test="${course.course_id==4}"> <br/> </c:if>
<c:if test="${course.course_id==7}"> <br/> </c:if>

		<c:if test="${course.enabled=='false'}">
			<img style="cursor: pointer;"
			onclick="TINY.box.show({html:'To szkolenie jest nieaktywne.',animate:false,close:true,top:50})"
			width="200" height="160" src="${pageContext.request.contextPath}/resources/images/szkolenia/szkolenie_${course.course_id}.png" />
		</c:if>
		<c:if test="${course.enabled=='true'}">
		<img style="cursor: pointer;"
			onclick="TINY.box.show({html:'<b>Informacje o szkoleniu:</b><br/>${course.title}<br/><br/>${course.description}<br/><br/><b>Kontakt z trenerem:</b><br/>${course.coach}<br/>${course.coachInfo}<br/>${course.coachContact}',animate:false,close:true,top:50})"
			width="200" height="160" src="${pageContext.request.contextPath}/resources/images/szkolenia/szkolenie_${course.course_id}.png" />
		</c:if>
		
</c:forEach>
<img width="200" height="160" src="${pageContext.request.contextPath}/resources/images/szkolenia/szkolenie_cedeka.png" />
</td>
<td width="300" valign="top" class="tab1" style="padding-left: 5px; padding-right: 5px;">
	Aktualności:<br/>
	<c:forEach items="${newsList}" var="news">
		<table width="100%" height="100%" class="newsSmallForm">
			<tr>
			<td width="100%">
				${news.message}
			</td>
			</tr>
		</table>
	</c:forEach>
</td>
<td width="300" height="100%" valign="top" class="tab1" style="padding-left: 5px; padding-right: 5px;">
		Nasi trenerzy:<br/>
			<table width="100%" height="100%" class="newsSmallForm">
			<tr>
			<td width="100%">        
			    <img src="${pageContext.request.contextPath}/resources/images/trenerzy/3.jpg" /> Damian Durda<br/><br/>
			    Poprowadzi szkolenie: Kurs baristyczny.<br/><br/>
			    Młody i ambitny barista, pasjonat kawy oraz herbaty. Współwłaściciel kawiarni-herbaciarni Atmosphera w Toruniu. Czas wolny poświęca kawie oraz muzyce. 
			</td>
			</tr>
		</table>
</td>
</tr>
</table>
</body>
</html>
